import os
print(os.getcwd())
# map函数,需要一个函数和列表,根据函数操作这个列表中数据,返回一个新列表
iterator = map(lambda x: x * 2, [1, 2, 3, 4, 5])
for i in iterator:
    # print(i)
    continue

range_ = [i*i for i in range(1, 10, 2)]
print(range_)

# 定义生成器(算法)
def fbi(max):
    a, x, y = 0, 1, 0
    while a < max:
        yield y  # 每次返回y
        x, y = y, x+y
        a += 1
        print("---", a)
    return None
g = fbi(5)
print(g.__next__())
print(g.__next__())
print(g.__next__())

b = bytes([102, 103, 105])
print(b)





